<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>订单管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all"/>
    <link rel="stylesheet" href="__CSS__/admin.css" media="all">
    <style type="text/css">

        /* tooltip */
        #tooltip {
            position: absolute;
            border: 1px solid #ccc;
            background: #333;
            padding: 2px;
            display: none;
            color: #fff;
        }
    </style>
</head>
<body style="padding:10px;">
<div class="tplay-body-div">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">已完成订单管理</li>
        </ul>
    </div>
    <form class="layui-form serch" action="{:url('admin/order/order_completed')}" method="post">
        <div class="layui-form-item" style="float: left;">
            <div class="layui-input-inline">
                <input type="text" name="keywords" lay-verify="title" autocomplete="off" placeholder="请输入订单号查询"
                       class="layui-input layui-btn-sm">
            </div>           
            <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">立即查询</button>
        </div>
    </form>
    
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            <th>订单号</th>
            <th>下单用户</th>
            <th>商品名称</th>
            <th>下单时间</th>
            <th>联系方式</th>
            <th>积分抵扣</th>
            <th>总金额</th>
            <th>实付金额</th>
            <th>收货地址</th>
            <th>支付状态</th>
            
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="info" id="vo"}
        <tr>
            <td>{$vo.order_number}</td>
            <td>{$vo.fit_name}</td>
            <td>{$vo.goods_name}</td>
            <td>{$vo.order_xdtime}</td>
            <td>{$vo.tel}</td>
            <td>-{$vo.order_jifen}</td>
            <td>{$vo.order_money}</td>
            <td>{$vo.order_pay_money}</td>
            <td>{$vo.address}</td>
            <td>
                {if condition="($vo.order_state == 1) "}待支付
                {elseif condition="$vo.order_state == 2"/}待收货
                {elseif condition="$vo.order_state == 3"/}已完成
                {elseif condition="$vo.order_state == 4"/}已取消
                {else /} 未知错误
                {/if}
            </td>
            <td class="operation-menu">
                <div class="layui-btn-group">
                    <a href="{:url('order/order_delete',['id'=>$vo.order_id,'file'=>'order_completed'])}"
                       class="layui-btn layui-btn-xs a_menu layui-btn-normal" id="{$vo.order_id}"
                       style="margin-right: 0;font-size:12px;">删除</a>
                </div>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$page}
    {include file="public/foot"}
</div>
</body>
</html>
